Auto merge of #2584 - alexcrichton:auth-more, r=brson
authorbors <bors@rust-lang.org>
Mon, 18 Apr 2016 04:53:11 +0000 (21:53 -0700)
committerbors <bors@rust-lang.org>
Mon, 18 Apr 2016 04:53:11 +0000 (21:53 -0700)
Correctly attempt multiple usernames with libgit2

This commit corrects the logic for attempting multiple usernames with libgit2.
There is a restriction that for each authentication seession you can only
authenticate with one ssh username, but we were attempting multiple as part of
the same sesssion. Instead restart authentication whenever we try a new username.

Closes #2399


Trivial merge